package com.atguigu.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Auther: fangshicai
 * @Date: 2022/1/16 15:07
 * @Description:
 */
@SpringBootApplication
//可以扫描到service_base模块中的com.atguigu子类及包中
@ComponentScan(basePackages = {"com.atguigu"})
//服务注册中心开启
@EnableDiscoveryClient
//开启nacos服务调用
@EnableFeignClients
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class,args);
    }
}
